package com.linwen.javase;

/**
 * @author : linwen
 * @date : 上午12:08 2021/1/7
 */
public class _MyException extends Exception{
    public static void main(String[] args) throws myException {
        int a = 5;
        if(a>5){
            System.out.println("sucess");
        }else{
            throw new myException("a小于5啦");
        }
    }

}
class myException extends Exception{
    static final long serialVersionUID = -3387516993124229949L;
    public myException(String message){
        super(message);
    }
}
